$(document).ready(function() {
    // set up the news accordion on the lower page
   /* $("#birthday").datepicker({
        changeMonth: true,
        changeYear: true
    });*/

    // create the image rotator
    
    setInterval("rotateImages()", 2000);
    $("#mainContent input#submit").button();
    $("li a:contains(Home)").addClass('current');
    /*$("div.frmRegister form").validate({
      rules: {
        newaddress:"required",
        causeshift:"required"
      }
    });*/
});
function rotateImages() {
    var oCurPhoto = $('#photoShow div.current');
    var oNxtPhoto = oCurPhoto.next();
    if (oNxtPhoto.length == 0)
        oNxtPhoto = $('#photoShow div:first');

    oCurPhoto.removeClass('current').addClass('previous');
    oNxtPhoto.css({ opacity: 0.0 }).addClass('current').animate({ opacity: 1.0 }, 1000,
                function() {
                    oCurPhoto.removeClass('previous');
                });
}/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


